Crate leptos_dom

source ·
Expand description

The DOM implementation for leptos.

Re-exports§

Modules§

  • Types for all DOM events.
  • A variety of DOM utility functions.
  • Exports types for working with HTML elements.
  • Utilities for simple isomorphic logging to the console or terminal.
  • Exports types for working with MathML elements.
  • Utilities for exporting nonces to be used for a Content Security Policy.
  • Server-side HTML rendering utilities.
  • Server-side HTML rendering utilities for in-order streaming and async rendering.
  • Exports types for working with SVG elements.

Macros§

  • Uses println!()-style formatting to log warnings to the console (in the browser) or via eprintln!() (if not in the browser), but only if it’s a debug build.
  • Uses println!()-style formatting to log errors to the console (in the browser) or via eprintln!() (if not in the browser).
  • Uses println!()-style formatting to log something to the console (in the browser) or via println!() (if not in the browser).
  • Uses println!()-style formatting to log warnings to the console (in the browser) or via eprintln!() (if not in the browser).

Structs§

  • A user-defined leptos component.
  • Custom leptos component.
  • Represents any View that can change over time.
  • The internal representation of the DynChild core-component.
  • A component for efficiently rendering an iterable.
  • The internal representation of the Each core-component.
  • HTML element.
  • A unique key for an error that occurs at a particular location in the user interface.
  • A struct to hold all the possible errors that could be provided by child Views
  • Represents a group of views.
  • Control and utility methods for hydration.
  • A stable identifier within the server-rendering or hydration process.
  • An owning iterator over all the errors contained in the Errors struct.
  • An iterator over all the errors contained in the Errors struct.
  • Contains a shared reference to a DOM node created while using the view macro to create your UI.
  • HTML text
  • Wrapper for arbitrary data that can be passed through the view.
  • The unit () leptos counterpart.
  • The internal representation of the Unit core-component.

Enums§

  • Represents the different possible values an attribute node could have.
  • Represents the different possible values a single class on an element could have, allowing you to do fine-grained updates to single items in Element.classList.
  • The core foundational leptos components.
  • A statically typed event handler.
  • Represents the different possible values an element property could have, allowing you to do fine-grained updates to single fields.
  • todo docs
  • A leptos view which can be mounted to the DOM.

Traits§

Functions§